#include <cstdio>  // 包含 printf 和 putchar 函数的定义
#include <cstring> // 包含 strlen 函数的定义
#define BYTE unsigned char
namespace PORTING_UNSIGNEDCHAR_RELOP {
	namespace bad {
		static unsigned char* reference = (unsigned char*)"Polisen fÃ¶rstÃ¤rker i MalmÃ¶";
		int foo(char* str)
		{
			unsigned char* rptr;
			for (rptr = reference; *ptr && *str; str++, rptr++)
				if (*str != *rptr)
					return 0;
			return 1;
		}
	}


	namespace good {
		static BYTE* reference = (unsigned char*)"Polisen fÃ¶rstÃ¤rker i MalmÃ¶";
		int foo(BYTE* str)
		{
			BYTE* rptr;
			for (rptr = reference; *ptr && *str; str++, rptr++)
				if (*str != *rptr)
					return 0;
		}
	}
}